package zb.blog.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import zb.blog.base.global.GlobalVar;
import zb.blog.base.util.gt3.GeetestLib;
import zb.blog.service.IVerificationCode;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;

/**
 * @Author: BinZhang
 * @Date: 2018/5/10 21:34
 * @Description:初始化验证码
 */
@Controller
@RequestMapping("/verifCode")
public class VerificationCodeController {
    @Autowired
    private IVerificationCode iVerificationCode;

    /**
     * @Author: BinZhang
     * @Date: 2018/5/12 16:52
     * @Description:初始化验证码
     */
    @RequestMapping("/initGeetest")
    @ResponseBody
    public String initGeetest(HttpServletRequest request) {
        return iVerificationCode.initGeetest(request);
    }

}
